import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useContext } from 'react';
import { useRouter } from 'next/router';
import { Tree, Radio, Space, Input, Tabs, } from 'antd';
import { WorkbenchesContext, } from '@/components/workbenches/workbenches-context';

import { Button, } from 'antd';
import { PlusOutlined } from '@ant-design/icons';
import {
  ComponentType,
} from '@/components/workbenches/hooks/type';
import WorkbenchesIcon from '@/components/workbenches/icons';
import ModelCanvas from '../model-canvas/index'
import InDetailModel from './inDetail'
const dataTree = ({ setCopilotVisible }) => {
  const { t, i18n } = useTranslation();
  const router = useRouter();
  
  const {
    currentItem,
  } = useContext(WorkbenchesContext);
  console.log('currentItem', currentItem)

  return (
    <ModelCanvas setCopilotVisible={setCopilotVisible} />
  );
}

export default dataTree;
